package com.celesea.auth.group.v1.controller.request;

import com.celesea.framework.vo.DictionaryVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author JackYuan
 * @create 2017-10-26 23:45
 */
@ApiModel(value = "角色新增")
public class PostRequest {
    @NotNull
    @Length(min = 1, max = 20)
    @ApiModelProperty(value = "编码")
    private String code;
    @NotNull
    @Length(min = 1, max = 20)
    @ApiModelProperty(value = "名称")
    private String name;
    @Length(min = 0, max = 50)
    @ApiModelProperty(value = "描述")
    private String description;
    @ApiModelProperty(value = "排序")
    private Integer sort;
    @ApiModelProperty(value = "启停用状态：[0：停用，1：启用]", allowableValues = "0,1")
    private Byte statusFlag;
    @ApiModelProperty(value = "成员")
    private List<DictionaryVo> users;

    public void setName(String name) {
        this.name = name;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setStatusFlag(Byte statusFlag) {
        this.statusFlag = statusFlag;
    }

    public String getName() {
        return name;
    }

    public String getDescription() {
        return description;
    }

    public Byte getStatusFlag() {
        return statusFlag;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public List<DictionaryVo> getUsers() {
        return users;
    }

    public void setUsers(List<DictionaryVo> users) {
        this.users = users;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
